
package com.chongchong.multifile.wrapper;

import com.chongchong.multifile.entity.Chunk;
import com.chongchong.core.mp.support.BaseEntityWrapper;
import com.chongchong.core.tool.utils.BeanUtil;
import com.chongchong.multifile.vo.ChunkVO;

/**
 * 文件分块表包装类,返回视图层所需的字段
 *
 * @author en
 * @since 2022-07-18
 */
public class ChunkWrapper extends BaseEntityWrapper<Chunk, ChunkVO>  {

    public static ChunkWrapper build() {
        return new ChunkWrapper();
    }

	@Override
	public ChunkVO entityVO(Chunk chunk) {
		ChunkVO chunkVO = BeanUtil.copy(chunk, ChunkVO.class);

		return chunkVO;
	}

}
